Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Add unauthenticated versions of test agent helpers for testing scenarios where authentication is not provided. This enables users to test behavior differences between authenticated and unauthenticated requests (e.g., get_products may return different results).

Changes

  • New exports: test_agent_no_auth, test_agent_a2a_no_auth, TEST_AGENT_MCP_NO_AUTH_CONFIG, TEST_AGENT_A2A_NO_AUTH_CONFIG
  • Added 6 comprehensive tests validating no-auth helper functionality
  • Updated README with Python usage examples and CLI documentation
  • Added example comparing authenticated vs unauthenticated behavior

Test Plan

  • All existing tests pass (171 tests)
  • 23 test helpers tests pass, including 6 new no-auth tests
  • New exports are importable from adcp.testing
  • Documentation includes Python and CLI examples

🤖 Generated with Claude Code

bokelley and others added 2 commits November 10, 2025 03:35
Add unauthenticated versions of test agent helpers for testing
scenarios where authentication is not provided. This enables
testing behavior differences between authenticated and
unauthenticated requests.

New exports:
- TEST_AGENT_MCP_NO_AUTH_CONFIG
- TEST_AGENT_A2A_NO_AUTH_CONFIG
- test_agent_no_auth
- test_agent_a2a_no_auth

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updated README and examples to document the new no-auth test helpers:
- Added CLI examples showing how to use test agents with/without auth
- Updated test helpers demo with authentication comparison example
- Documented all no-auth exports in the Features section

Users can now easily test authentication behavior differences
using test_agent_no_auth and test_agent_a2a_no_auth.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley changed the title Add no-auth test agent helpers feat: add no-auth test agent helpers Nov 10, 2025
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit baa5608 into main Nov 10, 2025
7 checks passed
bokelley added a commit that referenced this pull request Nov 10, 2025
The no-auth test helpers (test_agent_no_auth, test_agent_a2a_no_auth,
and their config constants) were added in PR #29 and exist in the
adcp.testing module, but were not exported from the main adcp module.

This meant users had to use:
  from adcp.testing import test_agent_no_auth

Instead of the expected:
  from adcp import test_agent_no_auth

This commit adds the missing exports to match the other test helpers
that are already exported.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
bokelley added a commit that referenced this pull request Nov 10, 2025
The no-auth test helpers (test_agent_no_auth, test_agent_a2a_no_auth,
and their config constants) were added in PR #29 and exist in the
adcp.testing module, but were not exported from the main adcp module.

This meant users had to use:
  from adcp.testing import test_agent_no_auth

Instead of the expected:
  from adcp import test_agent_no_auth

This commit adds the missing exports to match the other test helpers
that are already exported.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants